package com.un.ebs.quality.domain;

import java.util.Date;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import org.springframework.stereotype.Component;
import lombok.Data;
import com.un.ebs.core.metadata.DbField;

/**
 * (QualityCheckExt)表实体类
 *
 * @author makejava
 * @since 2021-04-12 09:52:18
 */
@Data
@Component
@TableName("v_quality_check_ext")
@SuppressWarnings("serial")
public class QualityCheckExt extends Model<QualityCheckExt> {


    @DbField(name = "id", length = 40, precision = 0)
    private String id;

    @DbField(name = "code", length = 50, precision = 0)
    private String code;

    @DbField(name = "quality_type", length = -1, precision = 0)
    private Integer qualityType;

    @DbField(name = "order_code", length = 100, precision = 0)
    private String orderCode;

    @DbField(name = "sku_id", length = 40, precision = 0)
    private String skuId;

    @DbField(name = "business_qty", length = 18, precision = 4)
    private Double businessQty;

    @DbField(name = "check_qty", length = 18, precision = 4)
    private Double checkQty;

    @DbField(name = "not_pass_qty", length = 18, precision = 4)
    private Double notPassQty;

    @DbField(name = "pass_status", length = -1, precision = 0)
    private Boolean passStatus;

    @DbField(name = "quality_define_id", length = 40, precision = 0)
    private String qualityDefineId;

    @DbField(name = "quality_code", length = 100, precision = 0)
    private String qualityCode;

    @DbField(name = "quality_title", length = 100, precision = 0)
    private String qualityTitle;

    @DbField(name = "quality_desc", length = 100, precision = 0)
    private String qualityDesc;

    @DbField(name = "relation_note_code", length = 50, precision = 0)
    private String relationNoteCode;

    @DbField(name = "ent_id", length = 40, precision = 0)
    private String entId;

    @DbField(name = "ent_name", length = 100, precision = 0)
    private String entName;

    @TableField(fill = FieldFill.INSERT)
    @DbField(name = "create_at", length = 40, precision = 0)
    private String createAt;

    @TableField(fill = FieldFill.INSERT)
    @DbField(name = "create_at_name", length = 100, precision = 0)
    private String createAtName;

    @TableField(fill = FieldFill.INSERT)
    @DbField(name = "create_time", length = -1, precision = 0)
    private Date createTime;

    @DbField(name = "tenant_id", length = 40, precision = 0)
    private String tenantId;

    @DbField(name = "sku_code", length = 100, precision = 0)
    private String skuCode;

    @DbField(name = "sku_name", length = 100, precision = 0)
    private String skuName;

    @DbField(name = "purchase_type", comment = "com.un.ebs.product.enums.ProductPurchaseTypeEnum", length = -1, precision = 0)
    private Integer purchaseType;


}